home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttjjjjuuuussssaaaaggggeeee((((2222)))) ggggeeeettttjjjjuuuussssaaaaggggeeee((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- getjusage - get job usage information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- iiiinnnntttt ggggeeeettttjjjjuuuussssaaaaggggeeee((((jjjjiiiidddd____tttt jjjjiiiidddd,,,, iiiinnnntttt rrrreeeessssoooouuuurrrrcccceeee,,,, ssssttttrrrruuuucccctttt jjjjoooobbbb rrrruuuussssaaaaggggeeee ****uuuupppp))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _g_e_t_j_u_s_a_g_e function retrieves the resource usage values for the
- specified job ID. If the _j_i_d parameter is zero, usage values for the
- current job will be returned. If _j_i_d is non-zero, it represents the job
- ID of the job for which usages values are retrieved. The _r_e_s_o_u_r_c_e
- parameter specifies the resource for which the usage values are returned.
- Allowable values are taken from the JLIMIT_xxx macros found in the
- ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh file. For example, the JLIMIT_CPU macro is for cpu time.
- The _u_p parameter points to a _r_u_s_a_g_e structure in the user program where
- the usage values will be returned.
-
- If the current job ID is different from the job ID being requested, the
- _g_e_t_j_u_s_a_g_e function checks for the CAP_MAC_READ capability. See the
- capability(4) and capabilities(4) man pages for more information on the
- capability mechanism that provides fine grained control over the
- privileges of a process.
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the _gggg_eeee_tttt_jjjj_uuuu_ssss_aaaa_gggg_eeee function fails and sets
- _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [ENOJOB] A job with the specified job ID cannot be found.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- getjlimit(2), getrusage(3).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _g_e_t_j_u_s_a_g_e returns a value of 0. Otherwise, a
- value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-